package com.quectel.core.module.village.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 楼层
 *
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2021-10-29 13:02:27
 */
@Data
@Schema
public class VillageFloorDto implements Serializable {

    /**
     * ID
     */
    @Schema(description = "ID")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 所属小区
     */
    @Schema(description = "所属小区")
    @NotNull
    private Long villageId;

    /**
     * 所属楼栋
     */
    @Schema(description = "所属楼栋")
    @NotNull
    private Long buildingId;

    /**
     * 楼层实际高度 数字类型
     */
    @Schema(description = "楼层实际高度 数字类型")
    @NotNull
    private Integer floorNo;

    /**
     * 房屋编码
     */
    @Schema(description = "楼层名称")
    @NotEmpty
    @Length(min = 1, max = 80)
    private String name;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private String creator;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private String editor;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private Date editTime;

    /************非数据库字段 start ************/


    /**
     * 小区名称
     */
    @Schema(description = "楼栋名称")
    private String villageName;

    /**
     * 小区名称
     */
    @Schema(description = "楼栋名称")
    private String buildingName;

    private List<VillageRoomDto> villageRoomDtoList;

    /************非数据库字段 end **************/
}
